﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Input;


public class Control
{
    public Boolean isPressed = false;
    public Boolean isToggled = false;
    public Boolean isJustPressed = false;
    public char controlName = ' ';
    public Microsoft.Xna.Framework.Input.Buttons button;
    public Microsoft.Xna.Framework.Input.Keys key;
    public int justPressedValue = 0;
    public int justPressedWaitTime = 1;

    public Control(Microsoft.Xna.Framework.Input.Buttons button, Microsoft.Xna.Framework.Input.Keys key, char controlName)
    {
        this.button = button;
        this.key = key;
        this.controlName = controlName;
    }

    public Boolean setToggle(Boolean isToggled)
    {
        this.isToggled = isToggled;
        return this.isToggled;
    }

    public void changeButton(Microsoft.Xna.Framework.Input.Buttons button)
    {
        this.button = button;
    }

    public void changeKey(Microsoft.Xna.Framework.Input.Keys key)
    {
        this.key = key;
    }
}
